<!DOCTYPE html>
<html>
<head>
<title>历史住院记录清单</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
<script src="js/purl.js"></script>
</head>

<body style="background:rbg(216,216,216);">
<div class="form_div">
  <h3>历史住院记录清单</h3>
  <ul>
    <li><span class="tit" style="width:70px;">选择对象：</span></li>
    <li style="line-height:36px;"><span>
      <input type="text" id="searchVal" placeholder="请输入VIP卡持有者姓名或身份证" style="width:220px;position:absolute;top:0;left:0;"/>
      </span><span style="position:absolute;left:235px;top:0;">
      <input type="button" value="查询" class="button_s button1" onclick="find_elder_history();" style="height:36px;" />
      </span></li>
  </ul>
  <div style="clear:both;"></div>
  <div style="margin:0;padding:0;" id="vue_vm_list">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <!--历史住院记录搜索结果-->
      <ul>
        <li style="width:100px;">
          <span style="display:block;position:absolute;top:12px;left:0;">
          <input class="magic-radio" type="radio" name="elderId" v-bind:id="todo.beHospitalId"
           v-bind:value="todo.elderForm.elderId" v-bind:elderName="todo.elderForm.name" v-bind:cardId="todo.elderForm.cardId"
           v-bind:beHospitalId="todo.beHospitalId" v-bind:startTime="todo.createTime" v-bind:endTime="todo.outDate"
           v-on:click="onRadioClick();"/>
          <label v-bind:for="todo.beHospitalId" class="label_txt" style="color:#009688">{{todo.elderForm.name}}</label>
          </span></li>
        <li><span>住院开始日期：{{todo.beDate}}</span></li>
        <li><span>住院结束日期：{{todo.outDate}}</span></li>
      </ul>
      <!--历史住院记录搜索结果--> 
    </div>
  </div>


      <div class="for_ie_div no_print"><!--为兼容IE-->
        <ul>
          <li><span class="tit" style="width:70px;"></span></li>
          <li style="width:160px;">
            <input type="button" value="打印清单" class="button button1" onclick="openTotalPage_history();" style="height:38px;"/>
          </li>
        </ul>
      </div>
  <div class="list_div" id="vue_vm_list_inventory">
  <div class="form_div_kk" style="margin:0;padding:0;" v-for="todo in todos">
    <h3>入院号：{{todo.elderBeHospitalForm.beNumber}}</h3>
    <ul v-if="todo.elderBeHospitalForm.elderForm.isFinancialCs==1">
      <li><span class="tit" style="width:70px;">金融客户：</span></li>
      <li><span>银行：{{todo.elderBeHospitalForm.elderForm.bankName}}</span></li>
      <li><span>联系人：{{todo.elderBeHospitalForm.elderForm.contactName}}</span></li>
      <li><span>联系电话：{{todo.elderBeHospitalForm.elderForm.contactPhoneNumer}}</span></li>
    </ul>
    <ul>
      <!-- 新增的余额相关 -->
      <li><span>押金：{{todo.pledge}}元</span></li>
      <li><span>预缴款合计：{{todo.prePay}}元</span></li>
      <li><span>总费用：{{todo.totalFee}}元</span></li>
      <li><span>钱包余额：{{todo.outFeeRecordForm.moneyWallet}}元</span></li>
      <li><span>保床退费：{{todo.returnMoney?todo.returnMoney:0}}元</span></li>
      <li><span>饭卡余额：{{todo.outFeeRecordForm.moneyMealCard}}元</span></li>
    </ul>
    <ul>
      <li style="width:70px;"><span>{{todo.elderBeHospitalForm.elderForm.name}}</span></li>
      <li><span>{{todo.elderBeHospitalForm.buildingName}} {{todo.elderBeHospitalForm.floorName}} {{todo.elderBeHospitalForm.roomNumber}}室 {{todo.elderBeHospitalForm.bedNumber}}床</span></li>
      <li><span style="color:#ff0000;">科室负责人：{{todo.elderBeHospitalForm.subjectRoomManager}}</span></li>
    </ul>
    <div style="clear:both;"></div>
    <h3>{{getTitle()}} 费用</h3>
    <div class="form_div_kk" style="margin:0;padding:0;" v-for="elderPayRecordForm in todo.elderPayRecordForms">
      <ul>
        <li><span>{{elderPayRecordForm.payDate}}</span></li>
        <li><span>{{elderPayRecordForm.costDesc}}：{{elderPayRecordForm.payMoney}}元</span></li>
        <li><span>操作人：{{elderPayRecordForm.handler}}</span></li>
        <li><span>状态：{{elderPayRecordForm.payStatus==1?'成功':(elderPayRecordForm.payStatus==2?'失败':'已退费')}}（{{elderPayRecordForm.payWay==1? '现金': (elderPayRecordForm.payWay==2? '钱包': 'VIP卡')}}）
          {{(elderPayRecordForm.arrearageDesc==null || elderPayRecordForm.arrearageDesc=='')? '': '（' + elderPayRecordForm.arrearageDesc + '）'}}</span></li>
      </ul>
    </div>
    <div class="form_div_kk">
      <ul>
        <li><span>合计</span></li>
        <li><span>总额{{(getElderPayRecordTotalMoney(todo.elderPayRecordForms)+getElderArrearageTotalMoney(todo.elderArrearageForms)).toFixed(3)}}元</span></li>
        <li><span>实缴{{getElderPayRecordTotalMoney(todo.elderPayRecordForms).toFixed(3)}}元</span></li>
      </ul>
    </div>
    <div style="clear:both;"></div>
    <div class="form_div_kk"><span>欠费情况：</span></div>
    <div class="form_div_kk" style="margin:0;padding:0;" v-if="todo.elderArrearageForms==null || todo.elderArrearageForms.length==0">
      <ul>
        <li><span>无欠费</span></li>
      </ul>
    </div>
    <div class="form_div_kk" style="margin:0;padding:0;" v-for="elderArrearageForm in todo.elderArrearageForms">
      <ul>
        <li><span>欠费项目：{{elderArrearageForm.arrearageDesc}}</span></li>
        <li><span>欠费金额：{{elderArrearageForm.arrearageMoney}}元</span></li>
        <li><span>欠费原因：{{elderArrearageForm.arrearageReason}}</span></li>
      </ul>
    </div>
  </div>
  </div>
</div>
<div style="clear:both;"></div>
<script src="js/common.js"></script> 
<script src="js/common_function.js"></script> 
<script src="js/common_date.js"></script> 
<script src="js/busi/3-7-9ls.js"></script>
<script src="js/busi/elder_out_order_outlay_buda.js"></script>
</body>
</html>